﻿<%@ Page Title="产品中心" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ProductList.aspx.cs" Inherits="PiaoanWeb.ProductList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table cellpadding="0px" cellspacing="1px" style="border: 0px; width: 990px; margin-left: auto; margin-right: auto; letter-spacing: 1px; line-height: 30px; background-color: gray">
        <tr>
            <td align="center" style="background-color: rgb(111,189,102); font-size: 18px; font-weight: bold; font-family: 微软雅黑">产品中心</td>
        </tr>
        <tr align="center" valign="middle" style="background-color: white">
            <td align="center" valign="middle" style="padding: 50px">
                <asp:Repeater ID="ProductRepeater" runat="server" ItemType="PiaoanWeb.AppLogic.DataAccessLayer.Products">
                    <HeaderTemplate>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table cellpadding="0px" cellspacing="0px" style="width: 165px; height: 135px; float: left">
                            <tr align="center">
                                <td style="background-image: url('Images/ProductBg.jpg'); height: 135px; width: 165px; background-repeat: no-repeat">
                                    <a href='<%# "ViewProduct.aspx?ProductID="+Item.ID %>'>
                                        <asp:Image ID="ProductImage" ImageUrl='<%#  "ProductPictures/" + Item.ProductImage %>' runat="server" Height="113px" Width="143px" Style="vertical-align: middle; border-width: 0px" /></a>
                                </td>
                            </tr>
                            <tr align="center" valign="middle">
                                <td>
                                    <asp:HyperLink ID="productNameLnk" runat="server" Text='<%# Item.Name %>' NavigateUrl='<%# "ViewProduct.aspx?ProductID="+Item.ID %>'></asp:HyperLink></td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>
                </asp:Repeater>
            </td>
        </tr>
        <tr style="background-color: rgb(111,189,102)">
            <td align="center">
                <asp:DropDownList ID="categoryDDL" runat="server" ItemType="PiaoanWeb.AppLogic.DataAccessLayer.Categories"
                    DataTextField="Name" DataValueField="ID" Width="150px" Height="30px" AppendDataBoundItems="true"
                    OnSelectedIndexChanged="categoryDDL_SelectedIndexChanged" AutoPostBack="True">
                    <asp:ListItem Text="所有类别" Value="0"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
    </table>

</asp:Content>
